<?php

/**
 * Class Involved_ShopBusinessModel
 */

class Involved_ShopBrandModel extends BaseModel
{

    protected $table = 'shop_brand';

    /**
     * 商家列表
     * @return mixed
     */
    public function BrandList()
    {
        return  DB::table($this->table)
            ->get();
    }

    /**
     * 获取一条商家信息
     * @param $id
     * @return mixed
     */
    public function GetBrandId($id)
    {
        return DB::table($this->table)
            ->select()
            ->where('brand_id',$id)
            ->first();
    }

}